package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingLevel;
import com.zzyl.vo.NursingLevelVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingLevelMapper {
    List<NursingLevelVo> selectAll();

    void insertLevel(NursingLevel nursingLevel);

    Page<List<NursingLevel>> pageLevel(Integer pageNum, Integer pageSize, String name, Integer status);

    NursingLevel getLevelById(Long id);

    void updateLevel(NursingLevel nursingLevel);

    void deleteLevel(Long id);

    void ture_false(@Param("id") Long id, @Param("status") Integer status);
}
